/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.polimi.Mir_1.paw;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Fulvio
 */
public class ErrMsg {
    private List<String> msg ;
    
    public ErrMsg() {
        this.msg = new ArrayList<String>() ;
    }
    
    public List<String> getMsgList() {
        return msg ;
    }
    
    public boolean isErr() {
        return !msg.isEmpty() ;
    }
    
    public void addMsg(String m) {
        msg.add(m) ;
    }
    
    public void clear() {
        msg.clear() ; 
    }
}
